//
//  ShoppingCartCell.h
//  cm
//
//  Created by suyibaishan on 2017/10/30.
//  Copyright © 2017年 feihu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ShoppingModel.h"

//添加代理，用于按钮加减的实现
@protocol ShoppingCartCellDelegate <NSObject>

-(void)btnClick:(UITableViewCell *)cell andFlag:(NSInteger)flag;

@end

@interface ShoppingCartCell : UITableViewCell

@property (nonatomic,strong) ShoppingModel *model;
@property (nonatomic,strong) UIImageView *goodsImg;//商品图片
@property (nonatomic,strong) UILabel *goodsTitle;//商品标题
@property (nonatomic,strong) UILabel *subtitleLabel;
//@property (nonatomic,strong) UILabel *normsLabel;
//@property (nonatomic,strong) UILabel *priceLab;//具体价格
//@property (nonatomic,strong) UILabel *goodsNumLab;//购买数量标签
@property (nonatomic,strong) UILabel *numCountLab;//购买商品的数量
@property (nonatomic,strong) UIButton *plusBtn;//添加商品数量
@property (nonatomic,strong) UIButton *reduceBtn;//删除商品数量
@property (nonatomic,strong) UIButton *selectBtn;//是否选中按钮

@property (nonatomic,assign) BOOL selectState;//选中状态
@property (nonatomic,strong) void(^selectAction)(void);
@property (nonatomic,strong) void(^tapAction)(void);
@property (nonatomic,strong) void(^deleteAction)(void);

@property (nonatomic,assign) id<ShoppingCartCellDelegate>delegate;

@end
